-
Notifications
You must be signed in to change notification settings - Fork 24
feat: URL resolving support for validate & metaschema #605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
050993e to
eca24c0
Compare
|
Interesting heisenbug failure - the URL is fine, but it had a 404 when the test ran? |
|
Interesting feature! Thanks for sending it. I'll book some time today to properly review it 🙏🏻 |
jviotti
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the idea. I think the way Codex/you are implementing it is fighting the current machinery for iterating on schema arguments. I think we need for make for_each_json transparently work with both URLs or file paths. The src/input.h file abstracts a way a lot of the logic, including line number gathering, reading, etc so that the actual commands never have to worry about it.
for_each_json will loop and pass specific positional arguments to handle_json_entry. It feels to me that such handle_json_entry needs to take either a path or a URI (maybe just a string?) and then internally check: if it is a path and it exists and it is a file, do X, if it is a directory, do Y, if it is an HTTP/S URL, do Z.
I think if we do all of that there, we very elegantly gain URL support in every applicable command.
|
On the transient CI failure, yeah, we've been getting that quite a bit recently. I'm on it right now! |
|
If you merge main back in, the transient CI issue should be gone! |
6bf416d to
3d93e71
Compare
Closes: sourcemeta#234 Co-authored-by: Codex <[email protected]> Generated-with: OpenAI Codex CLI (partial) Signed-off-by: Robin H. Johnson <[email protected]>
3d93e71 to
7ced116
Compare
|
couple more CI bumps from the code but ready again; nothing transient this time |
Closes: #234
Co-authored-by: Codex [email protected]
Generated-with: OpenAI Codex CLI (partial)
Signed-off-by: Robin H. Johnson [email protected]